/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.entity.pay;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信支付配置Entity
 * @author JiangYongKang
 * @version 2016-12-14
 */
public class ConfigPayWechat extends DataEntity<ConfigPayWechat> {
	
	private static final long serialVersionUID = 1L;
	private Long appid;		// APPID
	private String mchCode;		// 商户号
	private String privateKey;		// 商户支付密钥
	private String secert;		// 公众帐号
	
	public ConfigPayWechat() {
		super();
	}

	public ConfigPayWechat(String id){
		super(id);
	}

	public Long getAppid() {
		return appid;
	}

	public void setAppid(Long appid) {
		this.appid = appid;
	}
	
	@Length(min=0, max=255, message="商户号长度必须介于 0 和 255 之间")
	public String getMchCode() {
		return mchCode;
	}

	public void setMchCode(String mchCode) {
		this.mchCode = mchCode;
	}
	
	@Length(min=0, max=255, message="商户支付密钥长度必须介于 0 和 255 之间")
	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(String privateKey) {
		this.privateKey = privateKey;
	}
	
	@Length(min=0, max=255, message="公众帐号长度必须介于 0 和 255 之间")
	public String getSecert() {
		return secert;
	}

	public void setSecert(String secert) {
		this.secert = secert;
	}
	
}